import Api from '@/utils/request';

const requestApi = new Api('http://localhost:3000/api');

/**
 * 登录
 * @param {*} data
 * @returns
 */
export const login = (data) => {
    return requestApi.connection('post', '/login', data);
};

export const logout = () => {
    return requestApi.connection('get', '/logout');
};
